

<script type="text/javascript">
$(document).ready(function() {
	prepareInputsForHints();

	$('input:checkbox').each(function() {
		this.checked = false;
	});

    $('#user-isOpenID').click(function() {
        $('#lipassword').toggle();        
        $('#liconfirmPassword').toggle();
        $('#user-password').val('');
        $('#user-confirmPassword').val('');
    });

    $('#user-openid_identifier').blur(function() {
    	checkUsername(
    	    "/registration/checkusername", 
    	    $('#user-openid_identifier').val(), 
    	    function(isPresent) {
        	    if (isPresent) {
        	    	$('#user-openid_identifier').val('');
        	    	jQuery.facebox("<?= $this->translate('usernameUsed') ?>");
        	    }
        	}
        );
    });
});
	
</script>


<!--###Blocco Centrale###-->
<div id="content">
   <div id="centerLeft">
       
       <div class="borderLeftWhite"></div>
       
       <? if (!empty($this->errorMsg)): ?>
       <div id="opsRegisterForm">
           <div class="tabs">Ops!!!</div>
           <ul class="ulOpsRegister">
               <li class="errorli">
                    <span>
                        <?= $this->escape($this->errorMsg) ?>  
                    </span>
               </li>
           </ul>
       </div>
       <? endif ?>
   </div>
   <div id="puForm">
       <div class="tabs"><?= $this->translate('register') ?></div>
       <?= $this->form ?>
   </div>
</div>	